package com.crealth.job;


import java.io.IOException;

import org.apache.ibatis.exceptions.PersistenceException;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.crealth.db.UserDb;
import com.crealth.manager.MybatisManager;

public class KeepAliveMySQLJob implements Job {
	
	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		try {
			UserDb.selectClientVersion();
		}
		catch (PersistenceException e) {
			try {
				MybatisManager.initSessionFactory();
			} catch (IOException e1) {
			}
		}
	}
	
}
